
Route::group(function () {
    //砍价
        Route::get("/bargain_index", "app\admin\controller\Bargain@index")->name("bargain.index");// 列表
        Route::get("/bargain_detail", "app\admin\controller\Bargain@detail")->name("bargain.detail");// 详情
        Route::get("/bargain_order", "app\admin\controller\Bargain@order")->name("bargain.order");// 订单记录
        Route::get("/bargain_log", "app\admin\controller\Bargain@help_log")->name("bargain.bargain_log");// 砍价记录  
        Route::get("/bargain_order_detail", "app\admin\controller\Bargain@order_detail")->name("bargain.order_detail");// 订单详情
        Route::post("/bargain_order_export", "app\admin\controller\Bargain@order_export")->name("bargain.bargain_order_export");// 订单导出
        Route::post("/baragin_log_export", "app\admin\controller\Bargain@log_export")->name("bargain.log_export");// 砍价记录导出
        Route::get("/bargain_log", "app\admin\controller\Bargain@bargain_log")->name("bargain.log");// 砍价记录
        Route::post("/bargain_delete", "app\admin\controller\Bargain@delete")->name("bargain.delete");// 删除
        Route::post("/bargain_create", "app\admin\controller\Bargain@create")->name("bargain.create");// 创建  
        Route::post("/bargain_edit", "app\admin\controller\Bargain@edit")->name("bargain.edit");// 编辑
    })
->allowCrossDomain()// 跨域
->middleware(middleware\Auth::class)// jwt认证
->middleware(middleware\Permission::class);// 权限认证